home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / utility1 / gs261src.zip / GSCOLOR.H < prev    next >
C/C++ Source or Header  |  1993-05-13  |  3KB  |  54 lines

  1. /* Copyright (C) 1991, 1992 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.  */
  18.  
  19. /* gscolor.h */
  20. /* Client interface to color routines for Ghostscript library */
  21.  
  22. #ifndef gscolor_INCLUDED
  23. #  define gscolor_INCLUDED
  24.  
  25. /* Common definition for mapping procedures */
  26. typedef float (*gs_mapping_proc)(P2(const gs_state *, floatp));
  27.  
  28. /* Color and gray interface */
  29. int    gs_setgray(P2(gs_state *, floatp));
  30. float    gs_currentgray(P1(const gs_state *));
  31. int    gs_sethsbcolor(P4(gs_state *, floatp, floatp, floatp)),
  32.     gs_currenthsbcolor(P2(const gs_state *, float [3])),
  33.     gs_setrgbcolor(P4(gs_state *, floatp, floatp, floatp)),
  34.     gs_currentrgbcolor(P2(const gs_state *, float [3])),
  35.     gs_setcmykcolor(P5(gs_state *, floatp, floatp, floatp, floatp)),
  36.     gs_currentcmykcolor(P2(const gs_state *, float [4]));
  37. int    gs_setblackgeneration(P2(gs_state *, gs_mapping_proc));
  38. gs_mapping_proc    gs_currentblackgeneration(P1(const gs_state *));
  39. int    gs_setundercolorremoval(P2(gs_state *, gs_mapping_proc));
  40. gs_mapping_proc    gs_currentundercolorremoval(P1(const gs_state *));
  41. /* Transfer function */
  42. int    gs_settransfer(P2(gs_state *, gs_mapping_proc)),
  43.     gs_settransfer_remap(P3(gs_state *, gs_mapping_proc, int));
  44. gs_mapping_proc    gs_currenttransfer(P1(const gs_state *));
  45. int    gs_setcolortransfer(P5(gs_state *, gs_mapping_proc /*red*/,
  46.             gs_mapping_proc /*green*/, gs_mapping_proc /*blue*/,
  47.             gs_mapping_proc /*gray*/)),
  48.     gs_setcolortransfer_remap(P6(gs_state *, gs_mapping_proc /*red*/,
  49.             gs_mapping_proc /*green*/, gs_mapping_proc /*blue*/,
  50.             gs_mapping_proc /*gray*/, int));
  51. void    gs_currentcolortransfer(P2(const gs_state *, gs_mapping_proc [4]));
  52.  
  53. #endif                    /* gscolor_INCLUDED */
  54.